package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author hpiggy
 * @since 2023-03-09
 */
@TableName("order_apply_affirm")
@ApiModel(value = "OrderApplyAffirm对象", description = "")
@Data
public class OrderApplyAffirm implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long orderId;

    private Integer affirmType;

    @ApiModelProperty("1校长确认，2财务确认，3会计确认")
    private Integer type;

    @ApiModelProperty("确认日期")
    private LocalDate affirmDate;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(exist = false)
    List<OrderApplyAffirm> orderApplyAffirmList;
}
